﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using InnovaApp.Portals.MVC4Portal.Models.ScriptsGModels;
using InnovaApp.Layers.ResourcesLayer.Properties;

namespace InnovaApp.Portals.MVC4Portal.Controllers
{
	public class ScriptsGController: Controller
    {
		/// <summary>
		/// GET: /ScriptsG/inoHomeDynamic.js
		/// </summary>
		/// <returns></returns>
		public ActionResult inoHomeDynamic()
		{
			inoScriptGModel toReturn = new inoScriptGModel();
			toReturn.Variables.Add("ControllerName", "Home");
			Response.ContentType = "text/javascript";
			return View(toReturn);
		}
		/// <summary>
		/// GET: /ScriptsG/inoLogOnDynamic.js
		/// </summary>
		/// <returns></returns>
		public ActionResult inoLogOnDynamic()
		{
			inoScriptGModel toReturn = new inoScriptGModel();
			toReturn.Variables.Add("ControllerName", "LogOn");
			Response.ContentType = "text/javascript";
			return View(toReturn);
		}

		public ActionResult inoSample_SingleControl_DropDownListDynamic()
		{
			inoScriptGModel toReturn = new inoScriptGModel();
			toReturn.Variables.Add("ControllerName", "Sample_SingleControl_DropDownList");
			toReturn.Variables.Add("ErrMsg_Sample_SingleControl_DropDownList_CannotUpdate", Resources.ErrMsg_Sample_SingleControl_DropDownList_CannotUpdate);
			Response.ContentType = "text/javascript";
			return View(toReturn);
		}

		public ActionResult inoSample_SingleControl_TextBoxDynamic()
		{
			inoScriptGModel toReturn = new inoScriptGModel();
			toReturn.Variables.Add("ControllerName", "Sample_SingleControl_TextBox");
			toReturn.Variables.Add("ErrMsg_Sample_SingleControl_TextBox_CannotUpdate", Resources.ErrMsg_Sample_SingleControl_TextBox_CannotUpdate);
			Response.ContentType = "text/javascript";
			return View(toReturn);
		}

		public ActionResult inoAdvancedSamples_OrderWithDetailsDynamic()
		{
			inoScriptGModel toReturn = new inoScriptGModel();
			toReturn.Variables.Add("ControllerName", "AdvancedSamples_OrderWithDetails");
			Response.ContentType = "text/javascript";
			return View(toReturn);
		}

		public ActionResult inoSample_BasicForm_MyProfileDynamic()
		{
			inoScriptGModel toReturn = new inoScriptGModel();
			toReturn.Variables.Add("ControllerName", "Sample_BasicForm_MyProfile");
			Response.ContentType = "text/javascript";
			return View(toReturn);
		}


		public ActionResult inoDiagramsDynamic()
		{
			inoScriptGModel toReturn = new inoScriptGModel();
			toReturn.Variables.Add("ControllerName", "Diagrams");
			Response.ContentType = "text/javascript";
			return View(toReturn);
		}

		public ActionResult inoChangePasswordDynamic()
		{
			inoScriptGModel toReturn = new inoScriptGModel();
			toReturn.Variables.Add("ControllerName", "Diagrams");
			Response.ContentType = "text/javascript";
			return View(toReturn);
		}


	}
}
